{{config = get_blog_config()}}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta name="Content-Type" content="text/html; charset=UTF-8" />
  <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
  <title>{{=config.title}} Backstage - {{=Get('title')}}</title>
  <style type="text/css" media="all">
    @import url(/static/admin.css);
  </style>
  <style type="text/css" media="all">
	  #menu #tab{{=Get('current_tab')}} a {
		  color: #fff;
	  }
  </style>
</head>
<body>
<div id="page">
	<div id="top">
		<div id="login_info">Logged in as {{=get_user().email()}} | <a href="{{=logout_url}}">Logout</a></div>
		<div id="header">
			<h1>{{=config.title}}</h1>
		</div>
		<ul id="menu">
			<li id="tabdashboard"><a href="/admin/dashboard">Dashboard</a></li>
			<li id="tabentry"><a href="/admin/entry">Entry</a></li>
			<li id="tabcomment"><a href="/admin/comment">Comment</a></li>
			<li id="tabwidget"><a href="/admin/widget">Widget</a></li>
			<li id="tabpref"><a href="/admin/pref">Preference</a></li>
			<li><a href="/">Visit Blog</a></li>
		</ul>
	</div>
	<div id="main">
		<h2 id="title">{{=Get('title')}}</h2>
		{{include}}
		<div id="footer">
		  <p>Powered by GAE, Python and Tublog.</p>
		</div>
	</div>
</div>
</body>
</html>
